@echo off

rem 延时提示
msg %username% /time:11 /w "正在延时，点确定可以取消 11秒延时!"
echo %time%
:mkc


echo 1.VM_Auth  2.VM_NAT 3.VM_DHCP q.EXIT
echo                                                .
echo 11.关闭vm Auth  22.关闭vm NAT   33.关闭vm DHCP
echo                  .
echo                  .

set /p var=       选项 is ？  

if %var%==1 goto sauth
if %var%==2 goto snat
if %var%==3 goto sdhcp

if %var%==11 goto kauth
if %var%==22 goto knat
if %var%==33 goto kdhcp
if %var%==q exit
goto mkc

:sauth
sc start "VMAuthdService"
pause>nul
goto mkc

:snat
sc start "VMware NAT Service"
pause>nul
goto mkc

:sdhcp
sc start "VMnetDHCP"
pause>nul
goto mkc


:kauth
sc stop "VMAuthdService"
pause>nul
goto mkc

:knat
sc stop "VMware NAT Service"
pause>nul
goto mkc

:kdhcp
sc stop "VMnetDHCP"
pause>nul
goto mkc



